#include <stdio.h>
#include <stdlib.h>

int main()
{
    int arr[10] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19};
    int *pt = arr;
    printf("%p\n%p\n%p\n%d\n", &arr[0], &pt, pt, *pt);
    printf("%d\n", *pt + 3); //pt指向单元的内容+3
    printf("%d\n", pt[3]); //pt之后第三个单元的内容
    printf("%p\n", &*pt); //pt指向单元的地址
    printf("%p\n", *&pt); //pt的地址指向单元的内容
    //printf("%p\n", *pt[3]); //错误的
    printf("%d\n", *(pt + 3)); //pt之后第三个单元的内容
    printf("%d\n", *pt++); //输出*pt; 输出后pt指向了arr[1]
    printf("%d\n", *(pt++)); //输出*pt; 然后pt指向了arr[2]
    printf("%d\n", (*pt)++); //输出*pt; 然后arr[2] = arr[2] + 1 = 6
    printf("%d\n", ++(*pt)); //输出7
    system("pause");
    return 0;
}
